package com.wxk.lambda.closure;

import java.util.function.Consumer;

/**
 * wxk
 */
public class ClosureDemo2 {

    public static void main(String[] args) {

        int a = 10;

        Consumer<Integer> c = ele -> System.out.println(ele);

        c.accept(a);
    }
}
